package com.stylefeng.guns.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 网站用户表
 * </p>
 *
 * @author xking
 * @since 2018-12-28
 */
@TableName("op_user")
public class OrgUser extends Model<OrgUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 用户名（手机号）
     */
	@TableField("user_name")
	private String userName;
	@TableField("join_date")
	private Date joinDate;
    /**
     * 服务到期时间
     */
	@TableField("service_date")
	private Date serviceDate;
    /**
     * 密码
     */
	private String password;
    /**
     * 盐
     */
	private String salt;
    /**
     * 昵称  默认为登录手机号
     */
	@TableField("nick_name")
	private String nickName;
    /**
     * 邮箱
     */
	private String email;
    /**
     * 头像
     */
	@TableField("nick_photo")
	private String nickPhoto;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Date getJoinDate() {
		return joinDate;
	}

	public void setJoinDate(Date joinDate) {
		this.joinDate = joinDate;
	}

	public Date getServiceDate() {
		return serviceDate;
	}

	public void setServiceDate(Date serviceDate) {
		this.serviceDate = serviceDate;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getNickPhoto() {
		return nickPhoto;
	}

	public void setNickPhoto(String nickPhoto) {
		this.nickPhoto = nickPhoto;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
